package com.wh.mapper;

import com.wh.pojo.User;
import org.mybatis.spring.SqlSessionTemplate;

public class UserMapperImpl implements UserMapper {

    private static SqlSessionTemplate sqlSession;

    public void setSqlSession(SqlSessionTemplate sqlSession){
        this.sqlSession=sqlSession;
    }

    public User getUser(int id) {
        return sqlSession.getMapper(UserMapper.class).getUser(id);
    }

    public void insert(User user) {

    }

    public void delete(int id) {

    }
}
